import {
    request
} from "./request";
import qs from "qs";


//  添加仓库
export function addWarehouse(obj) {
    return request({
        url: "warehouse/addWarehouse",
        method: "post",
        data: obj,
        headers: {
            'Content-Type': 'application/json'
        }
    });
}
//   获取仓库
export function listWarehouse(obj) {
    return request({
        url: "warehouse/getWarehouseByName",
        method: "post",
        data: qs.stringify(obj)
    });
}
//获取公司
export function getCompanylist(obj) {
    return request({
        url: "company/listCompany",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  上下线仓库
export function updateWarehouseDown(obj) {
    return request({
        url: "warehouse/updateWarehouseDown",
        method: "post",
        data: qs.stringify(obj)
    });
}
//上线仓库
export function updateWarehouseUp(obj) {
    return request({
        url: "warehouse/updateWarehouseUp",
        method: "post",
        data: qs.stringify(obj)
    });
}